home *** CD-ROM | disk | FTP | other *** search
/ Flashy TrueType Fonts / Flashy TrueType Fonts.iso / galaxy / install.dat < prev    next >
Text File  |  1996-06-09  |  8KB  |  246 lines

  1. /*
  2.  * INSTALL.DAT
  3.  * Project: Guide to the Galaxy
  4.  * Version: 1.00
  5. */
  6.  
  7. @DefineProject
  8.     @Name = "Guide to the Galaxy"
  9.     @Version = "1.00"
  10.     @Subdir = "\\GALAXY"
  11.     @OutDrive = Z
  12. @EndProject
  13.  
  14. @DefineVars
  15.     @Qstring @PkgType   = "BOX"
  16.     @Integer @Blue       = @RGB(0,0,255)             //DEFINE COLOR BLUE
  17.     @Integer @Black      = @RGB(0,0,0)               //DEFINE COLOR BLACK
  18.  
  19. @EndVars
  20.  
  21.  
  22.  
  23.  
  24. @BackgroundMode(3,@Blue,@Black)
  25. @Display
  26.     @Cls
  27.  
  28.     Congratulations on your purchase of @Name!
  29.     
  30.     This program will now install @Name 
  31.     to your hard disk drive and verify the integrity
  32.     of the CD-ROM disk. You may press the [Esc] key
  33.     at any time to abort the installation.
  34.     @Pause
  35. @EndDisplay
  36. @PkgType = @GetINI("COSMI CDSETUP", "PkgMethod")
  37. @GetOutDrive
  38.     @Cls
  39.     Select the HARD disk drive on which you wish to install your
  40.     new copy of @Name.
  41.     ie. "Drive C:"
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.     
  52.     @Suppress(0, 1)
  53.     Use the [CURSOR] to highlight a drive letter. Press [ENTER]
  54.     to select that drive.
  55.     
  56.  
  57. @EndOutDrive
  58.  
  59.  
  60. @GetSubdir
  61.     @Cls
  62.     INSTALL is now suggesting a name for a program destination subdirectory 
  63.     to which files will be copied. Press [ENTER] to use @OutDrive:@SubDir,
  64.     or type "\" and a "path", where "path" is the subdirectory you want INSTALL
  65.     to use.
  66.     
  67.  
  68. @Prompt = "Which subdirectory ([Enter] = @Subdir) ?"
  69. @EndSubdir
  70.  
  71. @DefineVars
  72.     @Qstring @Item1 = "@OutDrive:\\@Subdir\\galaxy.exe, Galaxy ,
  73.                @OutDrive:\\@Subdir\\galaxy.exe"
  74.     @Qstring @Item2 = "@OutDrive:\\@Subdir\\galaxy.hlp, Galaxy Help,
  75.                @OutDrive:\\@Subdir\\galaxy.hlp"
  76.     @Qstring @Item3 = "@OutDrive:\\@Subdir\\galaxman.wri, Galaxy Manual,
  77.                @OutDrive:\\@Subdir\\galaxman.wri"
  78.     @Qstring @Item4 = "@OutDrive:\\@Subdir\\meteor.wri, Meteor Storm Manual,
  79.                @OutDrive:\\@Subdir\\meteor.wri"
  80.     @Qstring @Item5 = "@OutDrive:\\@Subdir\\meteor.exe, Meteor Storm,
  81.                @OutDrive:\\@Subdir\\meteor.exe"
  82. @EndVars
  83.  
  84. @DefineDisk
  85.     @Label = "GALAXY  Disk #1"
  86.     @BeginLib 772.001
  87.         @F GALAXY.EXE @S 400697 @O GALAXY.EXE
  88.         @F CITY.LST @S 13032 @O CITY.LST
  89.         @F CONSTELL.LST @S 1015 @O CONSTELL.LST
  90.         @F MESSIER.LST @S 1223 @O MESSIER.LST
  91.         @F SOLAR.LST @S 94 @O SOLAR.LST
  92.         @F STAR.LST @S 2924 @O STAR.LST
  93.         @F CONLINE.DAT @S 2784 @O CONLINE.DAT
  94.         @F CONLOC.DAT @S 352 @O CONLOC.DAT
  95.         @F MES.DAT @S 660 @O MES.DAT
  96.         @F STAR.DAT @S 72376 @O STAR.DAT
  97.         @F ZIP.DAT @S 6000 @O ZIP.DAT
  98.         @F LUNAR.LST @S 487 @O LUNAR.LST
  99.         @F ECLIP.DAT @S 194 @O ECLIP.DAT
  100.         @F LUNAR.DAT @S 1040 @O LUNAR.DAT
  101.         @F SUN.DIB @S 72048 @O SUN.DIB
  102.         @F MER.DIB @S 65300 @O MER.DIB
  103.         @F VEN.DIB @S 80172 @O VEN.DIB
  104.         @F MAR.DIB @S 76876 @O MAR.DIB
  105.         @F JUP.DIB @S 76682 @O JUP.DIB
  106.         @F SAT.DIB @S 76644 @O SAT.DIB
  107.         @F URA.DIB @S 76042 @O URA.DIB
  108.         @F NEP.DIB @S 77644 @O NEP.DIB
  109.         @F PLU.DIB @S 78606 @O PLU.DIB
  110.         @F MOO.DIB @S 75774 @O MOO.DIB
  111.         @F SUN.DAT @S 510 @O SUN.DAT
  112.         @F MER.DAT @S 419 @O MER.DAT
  113.         @F VEN.DAT @S 803 @O VEN.DAT
  114.         @F MAR.DAT @S 693 @O MAR.DAT
  115.         @F JUP.DAT @S 548 @O JUP.DAT
  116.         @F SAT.DAT @S 537 @O SAT.DAT
  117.         @F URA.DAT @S 560 @O URA.DAT
  118.         @F NEP.DAT @S 590 @O NEP.DAT
  119.         @F PLU.DAT @S 626 @O PLU.DAT
  120.         @F MOO.DAT @S 635 @O MOO.DAT
  121.         @F CITY.DAT @S 5370 @O CITY.DAT
  122.         @F GALAXY.HLP @S 35858 @O GALAXY.HLP
  123.         @F GRAND1.SKY @S 125 @O GRAND1.SKY
  124.         @F GRAND2.SKY @S 125 @O GRAND2.SKY
  125.         @F GRAND3.SKY @S 125 @O GRAND3.SKY
  126.         @F GRAND4.SKY @S 126 @O GRAND4.SKY
  127.         @F ECLIP91.SKY @S 121 @O ECLIP91.SKY
  128.         @F MARRETRO.SKY @S 125 @O MARRETRO.SKY
  129.  
  130. /* The lines in this comment block have been replaced by the lines 
  131.    following it by Ray Hogue
  132. =====================================================================================
  133.         @F VBRUN300.DLL @S 398416 @O \WINDOWS\SYSTEM\VBRUN300.DLL
  134.         @F CMDIALOG.VBX @S 18688 @O \WINDOWS\SYSTEM\CMDIALOG.VBX
  135.         @F COMMDLG.DLL @S 97936 @O \WINDOWS\SYSTEM\COMMDLG.DLL
  136.         @F SPIN.VBX @S 22528 @O \WINDOWS\SYSTEM\SPIN.VBX
  137.         @F THREED.VBX @S 64544 @O \WINDOWS\SYSTEM\THREED.VBX
  138. =====================================================================================
  139. */
  140.  
  141.  
  142.    /*-----------------------------------------------------------
  143.     several system files which will be moved to windows\system 
  144.     later in this script.
  145.    -----------------------------------------------------------*/
  146.  
  147.         @F VBRUN300.DLL @S 398416 @O VBRUN300.DLL
  148.         @F CMDIALOG.VBX @S 18688 @O CMDIALOG.VBX
  149.         @F COMMDLG.DLL @S 97936 @O COMMDLG.DLL
  150.         @F SPIN.VBX @S 22528 @O SPIN.VBX
  151.         @F THREED.VBX @S 64544 @O THREED.VBX
  152.  
  153.     @EndLib
  154.  
  155. @EndDisk
  156.  
  157. @Finish
  158. @Cls
  159.  
  160. /*--------------------------------------------------------
  161.     copy dlls and other sys files to the system dir ONLY 
  162.     if dated later than current dlls of the same name
  163. --------------------------------------------------------*/
  164.  
  165.     @If( @FileDate("@OutDrive:\\@Subdir\\VBRUN300.DLL")
  166.         > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL") )
  167.            @Copy("@OutDrive:\\@Subdir\\VBRUN300.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\VBRUN300.DLL")
  168.     @EndIf
  169.     @If( @FileDate("@OutDrive:\\@Subdir\\CMDIALOG.VBX")
  170.         > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX") )
  171.            @Copy("@OutDrive:\\@Subdir\\CMDIALOG.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\CMDIALOG.VBX")
  172.     @EndIf
  173.     @If( @FileDate("@OutDrive:\\@Subdir\\COMMDLG.DLL")
  174.         > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL") )
  175.        //COMMDLG.DLL is used extensively by windows - copying this could cause probs if already in use
  176.            @Copy("@OutDrive:\\@Subdir\\COMMDLG.DLL", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\COMMDLG.DLL")
  177.     @EndIf
  178.     @If( @FileDate("@OutDrive:\\@Subdir\\SPIN.VBX")
  179.         > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\SPIN.VBX") )
  180.            @Copy("@OutDrive:\\@Subdir\\SPIN.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\SPIN.VBX")
  181.     @EndIf
  182.     @If( @FileDate("@OutDrive:\\@Subdir\\THREED.VBX")
  183.         > @FileDate("@WindowsDrive:\\@WindowsDir\\SYSTEM\\THREED.VBX") )
  184.        //COMMDLG.DLL is used extensively by windows - copying this could cause probs if already in use
  185.            @Copy("@OutDrive:\\@Subdir\\THREED.VBX", "@WindowsDrive:\\@WindowsDir\\SYSTEM\\THREED.VBX")
  186.     @EndIf
  187.  
  188.     @Copy("galaxman.wri", "@OutDrive:\\@Subdir\\*.*")
  189. @If("@PkgType" == "JEWEL")
  190.    /*-----------------------------------------------------------
  191.     create game dir and copy game files
  192.     note that this should be done before creating the Windows group
  193.    -------------------------------------------------------------*/
  194.     @Copy("meteor.*", "@OutDrive:\\@Subdir\\*.*")
  195.     @Copy("mssnd*.wav", "@OutDrive:\\@Subdir\\*.*")
  196.     
  197.     @ProgramManager("[CreateGroup(COSMI @Name)]
  198.          [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
  199.          [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
  200.          [AddItem(@Item5, 0)]")
  201.     
  202. /*===================================================================
  203. Change to the game dir and run (Spawn) the self extracting game file    
  204. ====================================================================*/
  205. @Else
  206.     @Copy("meteor.*", "@OutDrive:\\@Subdir\\*.*")
  207.     @Copy("mssnd*.wav", "@OutDrive:\\@Subdir\\*.*")
  208.  
  209.     @ProgramManager("[CreateGroup(COSMI @Name)]
  210.          [AddItem(@Item1, 0)][AddItem(@Item2, 0)]
  211.          [AddItem(@Item3, 0)][AddItem(@Item4, 0)]
  212.          [AddItem(@Item5, 0)]")
  213.  
  214. @EndIf
  215.     @ChDrive @OutDrive
  216.     @ChDir "@SubDir"
  217.     //delete files from cosmitmp.dir and remove that dir
  218.     @Delete("@OutDrive:\\cosmitmp.dir\\*.*")
  219.     @RmDir("@OutDrive:\\cosmitmp.dir")
  220.  
  221.    /*-----------------------------------------------------------
  222.     Delete the DLL's and VBXs from app dir since they were 
  223.     already copied into  \windows\system.
  224.    -----------------------------------------------------------*/
  225.  
  226.     @Delete("VBRUN300.DLL")
  227.     @Delete("CMDIALOG.VBX")
  228.     @Delete("COMMDLG.DLL")
  229.     @Delete("SPIN.VBX")
  230.     @Delete("THREED.VBX")
  231.  
  232. @Cls
  233.     Installation of @Name is now finished.
  234.     A New application group has been created titled COSMI.
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.     @Pause
  243. @EndFinish
  244.  
  245. /* end-of-file */
  246.